<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>AOHOCMS 系统发生错误 </title>
    {load href="/public/admin/css/bootstrap.min.css"/}
    <link rel="stylesheet" href="/public/admin/css/elpis.min.css">
    <style>
        div.notice-title {
            border-bottom: 1px solid #DDD;
            margin-bottom: 14px;
        }
        .title{
            margin:4px 0;
            color:#F60;
            font-weight:bold;
        }

        .message,#trace{
            padding:1em;
            border:solid 1px #000;
            margin:10px 0;
            background:#FFD;
            line-height:150%;
        }

        .message{
            background:#FFD;
            color:#2E2E2E;
            border:1px solid #E0E0E0;
        }

        #trace{
            background:#E7F7FF;
            border:1px solid #E0E0E0;
            color:#535353;
        }

        .notice{
            padding:10px;
            margin:5px;
            color:#666;
        }
        .red{
            color:red;
            font-weight:bold;
        }
        div.brand {
            border-top: 1px solid #E0E0E0;
            color: #FF3300;
            line-height: 35px;
            text-align: center;
        }
        div.brand sup {
            color:gray;
            font-size:9pt
        }
    </style>
</head>
<body>
<div class="notice">
    <div class="notice-title">
        <h2>系统发生错误 </h2>
    </div>
    <div class="class="notice-content"">
        <div>
            您可以选择 [ <a href="<?php echo(strip_tags($_SERVER['PHP_SELF']))?>">重试</a> ] [ <a href="javascript:history.back()">返回</a> ] 或者 [ <a href="<?php echo(__APP__);?>">回到首页</a> ]</div>
        <?php if(isset($e['file'])) {?>
        <p><strong>错误位置:</strong>　FILE: <span class="red"><?php echo $e['file'] ;?></span>　LINE: <span class="red"><?php echo $e['line'];?></span></p>
        <?php }?>
        <p class="title">[ 错误信息 ]</p>
        <p class="message"><?php echo strip_tags($e['message']);?></p>
        <?php if(isset($e['trace'])) {?>
        <p class="title">[ TRACE ]</p>
        <p id="trace">
            <?php echo nl2br($e['trace']);?>
        </p>
        <?php }?>
    </div>
    <div class="brand"> AOHOCMS<sup><?php echo C('CMS_VERSION');?></sup></div>
</div>
</div>
</body>
</html>